//
//  TxLivePlayView.h
//  cryptox
//
//  Created by FXY on 2022/6/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^TxLiveCallBlock)(NSString* method, id arguments);
@interface TxLivePlayView : UIView

@property (copy, nonatomic) TxLiveCallBlock callBlock;

/// 初始化
- (instancetype)initWithFrame:(CGRect)frame args:(NSDictionary *)args;

- (void)startPlay:(NSDictionary *)dic;

- (void)stopPlay;

- (void)onPause;

- (void)onResume;

- (void)onDestroy;

- (void)firstPlayRtmp;

- (BOOL)isPlaying;

- (void)seek:(NSDictionary *)dic;

@end

NS_ASSUME_NONNULL_END
